package cool.qingqing.exception;

/**
 * @author 高山青
 * @Date 2021/12/25  -   23:56
 */
public class BaseException extends RuntimeException{
	//无需格式化的异常类
	public BaseException(BaseEnum baseEnum) {
		super(baseEnum.getMsg());
	}
	//需要格式化的异常类
	public BaseException(BaseEnum baseEnum,Object... str) {
		super(baseEnum.getFormatMsg(str));
	}
}
